package com.edu.exam.enums.examination.online.technical;

/**
 * 文件格式枚举
 */
public enum FileFormat {
    PDF("PDF", "PDF文档"),
    DOC("DOC", "Word文档"),
    DOCX("DOCX", "Word 2007+文档"),
    XLS("XLS", "Excel文档"),
    XLSX("XLSX", "Excel 2007+文档"),
    PPT("PPT", "PowerPoint文档"),
    PPTX("PPTX", "PowerPoint 2007+文档"),
    TXT("TXT", "文本文件"),
    RTF("RTF", "富文本格式"),
    HTML("HTML", "网页文件"),
    XML("XML", "XML文件"),
    JSON("JSON", "JSON文件"),
    CSV("CSV", "CSV文件"),
    BMP("BMP", "位图图像"),
    JPEG("JPEG", "JPEG图像"),
    JPG("JPG", "JPG图像"),
    PNG("PNG", "PNG图像"),
    GIF("GIF", "GIF图像"),
    TIFF("TIFF", "TIFF图像"),
    WEBP("WEBP", "WebP图像"),
    SVG("SVG", "SVG矢量图像"),
    ICO("ICO", "图标文件"),
    PSD("PSD", "Photoshop文档"),
    AI("AI", "Illustrator文档"),
    MP4("MP4", "MP4视频"),
    AVI("AVI", "AVI视频"),
    MOV("MOV", "QuickTime视频"),
    WMV("WMV", "Windows Media视频"),
    FLV("FLV", "Flash视频"),
    MP3("MP3", "MP3音频"),
    WAV("WAV", "WAV音频"),
    AAC("AAC", "AAC音频"),
    FLAC("FLAC", "FLAC音频"),
    OGG("OGG", "OGG音频"),
    WMA("WMA", "Windows Media音频"),
    ZIP("ZIP", "ZIP压缩包"),
    RAR("RAR", "RAR压缩包"),
    SEVEN_Z("7Z", "7-Zip压缩包"),
    TAR("TAR", "TAR压缩包"),
    GZ("GZ", "GZ压缩包"),
    BZ2("BZ2", "BZ2压缩包");

    private final String code;
    private final String description;

    FileFormat(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    public String getDisplayName() {
        return description;
    }
}
